This directory holds data and code underlying the figures of the PNAS paper by Y. Wu, T. A. Mooring, and M. Linz, "Policy and weather influences on mobility during the early US COVID-19 pandemic".
All of the figures were initially rendered in MATLAB. All the code here is .m files and the data is stored in .mat files. The figures were stitched together with aesthetic adjustments in Illustrator prior to submission to PNAS.
The main paper contains 9 figures and its supporting information contains 4 more.
This directory contains
1) this readme
2) a single MATLAB script, top_level_script.m. The purpose of top_level_script.m is to conveniently regenerate all 13 figures. It does this by sequentially invoking the relevant MATLAB script.
3) a MATLAB script for each figure (name matches figure number)
4) MATLAB data files for figures (name matches figure number)
5) a hatchfill2.m script for generating hatches on maps
6) a Fig1_timeseries_changept_analysis.m script to identify quarantine start and stop dates
7) Unacast state level potential encounter rate metric from 2/24/2020 to 6/6/2020 (us_ordered and us_e found in Fig1_policy.mat). This may be helpful for replicating analysis to identify quarantine start and stop dates.
8) Data for when state level potential encounter rates returned to 20%, 40%, 50% of prepandemic levels (found in Fig1_policy.mat)

All data analysis were done using MATLAB R2019b, with the Mapping Toolbox and the Curve Fitting Toolbox installed. For more information, please reach out to the corresponding author, Yihan Wu at yihanwu@college.harvard.edu. 
